.display-page {
  color: #333;
  padding: 10px 12px;
  background-color: #f8f9fa;
  padding-top: calc(env(safe-area-inset-top) + 160rpx);
  padding-bottom: env(safe-area-inset-bottom);

  .actionsheet-item {
    width: 100%;
    box-sizing: border-box;
    font-weight: normal;
    color: #000;
  }
}

.display-page-navbar {
  --nav-bar-icon-color: #343a40;

  .van-nav-bar__text {
    color: #343a40;
  }
}

page {
  background-color: #f8f9fa;
}

.display-page > .header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}

.display-page > .header .title {
  font-size: 24px;
  font-weight: 600;
}

.display-page .header .right {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.display-page .header .right .tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #000;
}

.display-page .header .right .tab .item {
  margin: 0 4px;
  font-size: 14px;
  line-height: 1.2;
}

.display-page .header .right .tab .item.selected {
  font-weight: 600;
  color: #000;
}

.display-page .header .right .set-icon {
  font-size: 22px;
}

.display-page .header .right .set-icon.active {
  color: #058aff;
}

.screen-box .grid {
  display: flex;
  flex-wrap: wrap;
}

.screen-box .screen-item {
  display: flex;
  position: relative;
  border: 1px solid #cccccc;
  box-sizing: border-box;
}

.screen-box .screen-item .header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
  font-size: 12px;
  margin: 0;
  padding: 3px 5px;
  z-index: 2;
  display: flex;
  align-items: center;
}

.screen-box .screen-item .header .sn {
  flex: 1;
  display: flex;
  text-align: center;
  justify-content: center;
  color: #000;
}

.screen-box .screen-item.small .header {
  font-size: 10px;
  padding: 2px 2px;
}

.screen-box .screen-item.small .header .sn {
  font-size: 5px;
  visibility: hidden;
}

.screen-box .screen-cover {
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
}

.preset-container .preset-list {
  display: flex;
  flex-direction: row;
  padding: 8rpx 0;
  white-space: nowrap;
  flex-wrap: wrap;

  .preset-item {
    flex-basis: 33.33%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-right: 10rpx;
    margin-bottom: 20rpx;

    &:nth-child(3n) {
      padding-right: 0;
    }

    .img {
      width: 100%;
      margin-bottom: 10rpx;
    }

    .name {
      font-size: 14px;
    }
  }

  &.single-child {
    .preset-item {
      flex-basis: 100%;
    }
  }
}

.choose-device-container {
  .device-list {
    display: flex;
    flex-direction: row;
    padding: 8rpx 0;
    white-space: nowrap;
  }

  .device-scroll {
    width: 100%;
  }
}

.choose-device-container .device-item {
  background-color: #fff;
  border: 1px solid #333;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22rpx 32rpx;
  margin-right: 20rpx;
  border-radius: 8rpx;
  font-size: 28rpx;
  min-width: 160px;
  font-weight: normal;
}

.choose-device-container .device-item.selected {
  border-color: #1989fa;
  background-color: #1989fa;
  color: #fff;
}

.choose-device-container .device-item:last-child {
  margin-right: 0;
}

.selection > .title {
  font-size: 16px;
  padding: 15px 0;
  color: #000;
  display: flex;
  align-items: center;
}

.selection > .title .iconfont {
  font-size: 17px;
  margin-left: 5px;
}

.dialog-content {
  padding: 20rpx 20rpx;
}

.form-item {
  margin-bottom: 32rpx;
}

.form-item:last-child {
  margin-bottom: 0;
}

.form-item .label {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 16rpx;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 4rpx;
  border: 1px solid #adb5bd;
}

.form-item .input {
  flex: 1;
  width: 100%;
  height: 88rpx;
  padding: 0 24rpx;
  box-sizing: border-box;
  font-size: 28rpx;
  background: transparent;
}

.scan-icon {
  width: 48rpx;
  height: 48rpx;
  margin-right: 24rpx;
}

.form-item .input::placeholder {
  color: #999;
}

.dialog-bottom {
  background: #fff;
  border-radius: 8rpx;
  padding: 24rpx;
  margin-bottom: 20rpx;
}

.dialog-bottom .search-box {
  display: flex;
  align-items: center;
  gap: 20rpx;
  margin-bottom: 24rpx;
}

.search-input {
  flex: 1;
  height: 72rpx;
  background: #f8f9fa;
  border-radius: 30rpx;
  padding: 0 30rpx;
  font-size: 28rpx;
}

.dialog-bottom .save-btn {
  color: #1989fa;
  font-size: 28rpx;
}

.dialog-bottom .save-btn.hide {
  color: #fff;
}

.tab-bar {
  display: flex;
  margin-bottom: 24rpx;
  padding-bottom: 24rpx;
  border-bottom: 2rpx solid #efeff0;
}

.tab-item {
  padding: 15rpx 32rpx;
  margin-right: 24rpx;
  font-size: 28rpx;
  color: #333;
  position: relative;
  background: #f6f8fa;
  border-radius: 18rpx;
}

.tab-item.active {
  background-color: #1989fa;
  color: #fff;
}

.project-group {
  margin-bottom: 32rpx;
}

.group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
  font-size: 30rpx;
  font-weight: 500;
}

.more {
  font-size: 26rpx;
  color: #1989fa;
  font-weight: normal;
}

.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16rpx;
  margin-bottom: 20rpx;
}

.project-tab {
  padding: 12rpx 24rpx;
  background: #fff;
  border: 1px solid #dedfe0;
  font-size: 26rpx;
  color: #333;
}

.project-tab.active {
  background: #1989fa;
  color: #fff;
}

.dialog-bottom .screen-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12rpx;
}

.dialog-bottom .screen-item {
  padding: 8rpx;
  text-align: center;
  font-size: 15px;
  color: #000;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.dialog-bottom .screen-item .camera-icon {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

.dialog-bottom .line {
  border-bottom: 2rpx solid #efeff0;
}
